package com.ruoyi.wechat.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.TreeEntity;

/**
 * 菜单列表对象 menu
 *
 * @author 林道敬
 * @date 2025-01-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("menu")
public class Menu
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    @TableId(type = IdType.AUTO)
    private Long id;

    private Long parentId;

    /** 菜单名称 */
    @Excel(name = "菜单名称")
    private String name;

    /** 类型 */
    @Excel(name = "类型")
    private String type;

    /** 网页 链接，用户点击菜单可打开链接 */
    @Excel(name = "网页 链接，用户点击菜单可打开链接")
    private String url;

    /** 菜单KEY值，用于消息接口推送 */
    @Excel(name = "菜单KEY值，用于消息接口推送")
    private String meunKey;

    /** 排序 */
    @Excel(name = "排序")
    private Long sort;

    /** $column.columnComment */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private Long isDeleted;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setUrl(String url)
    {
        this.url = url;
    }

    public String getUrl()
    {
        return url;
    }
    public void setMeunKey(String meunKey)
    {
        this.meunKey = meunKey;
    }

    public String getMeunKey()
    {
        return meunKey;
    }
    public void setSort(Long sort)
    {
        this.sort = sort;
    }

    public Long getSort()
    {
        return sort;
    }
    public void setIsDeleted(Long isDeleted)
    {
        this.isDeleted = isDeleted;
    }

    public Long getIsDeleted()
    {
        return isDeleted;
    }
}
